from apps.common.base.views import *
from apps.system.lessee.serializers import *
from apps.system.lessee.dao import LesseeDao
from apps.system.lessee.filters import LesseeFilter

def getAllLessee(self):
    _list = LesseeDao().findAll()
    return _list

class BaseLesseeViewSet(BaseViewSet):
    serializer_class = LesseeModelSerializer
    filter_class = LesseeFilter
    DAO_CLASS = LesseeDao